CyberStore Documentation
Initial Definitions

Minimum Namespaces

"Minimum Namespaces" Requirement:

Minimum Namespaces
Copy Code
<%@ Import Namespace=”System” >
<@ Import Namespace=”HttpContext.Current” >
<@ Import Namespace=”System.Xml” %>

Page Definition

In the "Page Definition" tag, make sure you have aspcompat="true":

Page Definition
Copy Code
<%@ Page Language=”VB” aspcompat=”true” Debug=”true” %>

Variables

CyberStore Connect uses the following variables in its documentation:

Variables
Copy Code
<%    
    Dim WEBSERVICEROOT As String = “https://” & Request.ServerVariables(“SERVER_NAME”) & “/Ecommerce/Connect/Session.asmx”
    Dim WEBSERVICEURL As String = “https://” & Request.ServerVariables(“SERVER_NAME”) & “/Ecommerce/Connect/Session.asmx/GetProfile”
    Dim CLIENTCODE As String = “7023bd19-2451-4ae0-bf10-b60df70e6482”
    Dim YOUAREHERE As String = “http://” & Request.ServerVariables(“SERVER_NAME”) & Request.ServerVariables(“URL”)
    Dim LOGINURL As String = “http://” & Request.ServerVariables(“SERVER_NAME”) & “/Ecommerce/CustomerLoginForm.aspx?RETURNURL=” & YOUAREHERE
    Dim LOGOUTURL As String = “http://” & Request.ServerVariables(“SERVER_NAME”) & “/Ecommerce/CustomerLogout.aspx?RETURNURL=” & YOUAREHERE
    Dim YOUHAVEACCESS As Boolean = False
    Dim SoapRequest = Server.CreateObject(“MSXML2.XMLHTTP”)
    Dim WEBSERVICERESPONSE = Server.CreateObject(“MSXML2.DOMDocument.3.0”)
%>

Note:

The CLIENTCODE value above must be replaced with the unique Client Code created in the CyberStore Connect maintenance screen of the CyberStore Console.